<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<s:include value="/include/header/header.jsp"></s:include>
	Bills
<s:include value="/include/header/mainNav.jsp"></s:include>
	<!--NAV ENDS HERE-->
    <!--DISPLAY STARTS HERE-->
    <div id="display">
    <!--DISPLAY INNER STARTS HERE-->
	
	<div id="display-inner">
		<h1>Bills for Account</h1>
		<table>
			<tr>
				<td class="table-width">Option</td>
				<td class="table-width">ID</td>
				<td class="table-width">Company Name</td>
				<td class="table-width">Billing Start Date</td>
				<td class="table-width">Billing End Date</td>
				<td class="table-width">Amount Due</td>
				<td class="table-width">Date Billed</td>
			</tr>
			<s:iterator value="bills" var="off">
				<tr>
					<td class="table-width"><a href="billingInvoice.action?accountId=<s:property value='#off.account.id'/>">Check latest Bill</a></td>
					<td class="table-width"><s:property value="#off.id" /></td>
					<td class="table-width"><s:property value="#off.account.company" /></td>
					<td class="table-width"><s:property value="#off.billingPeriodStart" /></td>
					<td class="table-width"><s:property value="#off.billingPeriodEnd" /></td>
					<td class="table-width"><s:property value="getText('format.money', {#off.amountDue})" /></td>
					<td class="table-width"><s:property value="#off.date" /></td>
				</tr>
			</s:iterator>
		</table>
		
		<s:include value="/include/footer/footer.jsp"></s:include>		
